package models

import (
	"time"
)

// Dormitory 宿舍信息模型
type Dormitory struct {
	ID         uint      `gorm:"primarykey" json:"id"`
	BuildingNo string    `gorm:"size:20;not null" json:"building_no"`
	RoomNo     string    `gorm:"uniqueIndex;size:20;not null" json:"room_no"`
	Floor      int       `json:"floor"`
	Capacity   int       `json:"capacity"`
	Occupied   int       `json:"occupied"`
	Type       string    `gorm:"size:20" json:"type"` // 男生宿舍、女生宿舍
	CreatedAt  time.Time `json:"created_at"`
	UpdatedAt  time.Time `json:"updated_at"`
}
